<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例5</title>
    <style>
        .mydiv {
            width: 500px;
            height: 500px;
            background-color: orangered;
            border: 15px solid blue;
            cursor: pointer;
        }
        
        .active {
            background-color: blue;
            border: 15px solid orangered;
        }
    </style>
</head>

<body>
    <!-- 179001202 张皓然 -->
    <div class="mydiv" onmousemove="this.className += ' active'" onmouseout="this.className = 'mydiv'">

    </div>

    <script>
    </script>


</body>

</html>